package com.jh.readme.iu.activity.ndetail;

import com.jh.tools.base.BaseModel;
import com.jh.tools.base.BasePresenter;
import com.jh.tools.base.BaseView;
import com.jh.tools.bean.NeteastNewsDetail;

import java.util.Map;

import rx.Observable;

/**
 * Home抽象类
 */
public interface NewsDetailContract {
    interface Model extends BaseModel {
        /**
         * 根据新闻获取详细信息
         * @param newsId
         */
        Observable<Map<String, NeteastNewsDetail>> getNewsDetailDate(String newsId);

    }


    interface View extends BaseView {

    }

    abstract class Presenter extends BasePresenter<Model, View> {
        /**
         * 根据新闻获取详细信息
         * @param newsId
         */
       abstract void getNewsDetail(String newsId);
    }
}